/**
 * 穿梭树插件js,基于layui
 * @type {{}}
 */
ShuttleTree = {};
let layer, $;

/**
 * 初始化方法
 */
ShuttleTree.init = function () {
    layui.use('layer',function(){
        layer = layui.layer, $ = layui.jquery;
    });
};
ShuttleTree.init();

/**
 * 打开穿梭树窗口
 */
ShuttleTree.open = function () {
    layer.open({
        title: '穿梭树'
        ,skin: 'demo-class'
        ,type: 2
        ,area: ['600px', '500px']
        ,maxmin: true
        ,content: [WEBAPP_ROOTPATH + '/pages/component/shuttleTree/shuttleTree.html', 'no']
        ,success: function(layero, index){
            console.log(layero, index);
        }
    });
};